﻿using ProjectManage.Core.Entity.SYS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectManage.Application.System.SendData
{
    public class DictionarySendData : IEntitySeedData<SysDictionary>
    {
        // 配置种子数据
        public IEnumerable<SysDictionary> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new List<SysDictionary>
            {
                new SysDictionary { Id = new Guid("1fd96454-f501-423c-82fb-c2673bf34f24"),
                               DictionaryType = "YesOrNo",
                                DictionaryTypeName ="是否",
                                DictionaryValue = "0",
                                 DictionaryDescription = "否",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                       new SysDictionary { Id = new Guid("36a5d767-441b-4a20-9ca1-5e22019a2101"),
                               DictionaryType = "YesOrNo",
                                DictionaryTypeName ="是否",
                                DictionaryValue = "1",
                                 DictionaryDescription = "是",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                              new SysDictionary { Id = new Guid("9ab0db6a-4cd3-4983-bfa2-e1ede009b1c1"),
                               DictionaryType = "MenuType",
                                DictionaryTypeName ="菜单类型",
                                DictionaryValue = "0",
                                 DictionaryDescription = "目录",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                                       new SysDictionary { Id = new Guid("0970f12c-62df-4a1d-a7c7-922af58ae9be"),
                               DictionaryType = "MenuType",
                                DictionaryTypeName ="菜单类型",
                                DictionaryValue = "1",
                                 DictionaryDescription = "页面",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                                                new SysDictionary { Id = new Guid("3b4efa7e-1410-4c8c-8f5d-f00b91c55588"),
                               DictionaryType = "MenuType",
                                DictionaryTypeName ="菜单类型",
                                DictionaryValue = "2",
                                 DictionaryDescription = "按钮",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
     new SysDictionary { Id = new Guid("eca95e32-bfd5-4629-8dbf-0b95749aaaa1"),
                               DictionaryType = "AppCode",
                                DictionaryTypeName ="应用",
                                DictionaryValue = "0",
                                 DictionaryDescription = "全局",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},

            };
        }
    }
}
